package cn.jiedh.app.meiweidk.web.webhandle;

import android.content.Context;
import android.support.v4.app.Fragment;

import cn.jiedh.app.meiweidk.Utils.tool.L;
import cn.jiedh.app.meiweidk.Utils.tool.T;
import cn.jiedh.app.meiweidk.web.webkit.WJBridgeHandler;
import cn.jiedh.app.meiweidk.web.webkit.WJCallbacks;

/**
 * @name：
 * @author： liuyun
 * @phone： 15723310658
 * @createTime： 2017/12/18
 * @modifyTime： 2017/12/18
 * @explain：说明
 */


public class ShowMsgHandle implements WJBridgeHandler {
    public static final String HANDLE_NAME="showMsg";
    private Context mCox;
    private Fragment mFragment;

    public ShowMsgHandle(Context mCox) {
        this.mCox = mCox;
    }

    public ShowMsgHandle(Fragment mFragment) {
        this.mFragment = mFragment;
    }

    @Override
    public void handler(String data, WJCallbacks callbacks) {
        if(L.isDebug) {
            System.out.println("ShowMsgHandle-----------------------------------------------------------------------------");
            System.out.println("data-->" + data);
        }
        T.showShort(data);
    }
}
